<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>ECharts</title>
    <script src="echarts.min.js"></script>
    <script src="echarts-gl.js"></script>
  </head>
  <body>
    <div id="main" style="width: 600px; height: 400px"></div>
    <script type="text/javascript">
      var myChart = echarts.init(document.getElementById("main"));
      var option = {
        title: {
          text: "金义选",
        },

        globe: {
          //设置球体大小
          globeRadius: 50, //球体的外半径
          globeRadius: 60, //设置背景颜色或者贴图,贴图会自动滚动
          environment: "img/yz.jpg", //设置球体的贴图
          baseTexture: "img/earth.jpg", //三维图着色效果
          shading: "realistic", //光源设置
          light: {
            main: {
              //主光源设置
              color: "white",
            },
          }, //后处理特效
          postEffect: {
            enable: true,
            bloom: {
              enable: true,
              bloomIntensity: 100,
            },
          },
          viewControl: {
            //投影方式
            projection: "orthographic", //自动选择设置 // autoRotate: false, //设置自转方向
            autoRotateDirection: "ccw", //设置自转速度
            autoRotateSpeed: 3,
          }, //调整图的位置
          left: "5%",
          top: "5%",
        },
      };
      myChart.setOption(option);
    </script>
  </body>
</html>
